-- GENERATED SPELL FOR [Young Wavethrasher] --


function spell0_6347(pUnit, Event) --@Thrash,Self--
pUnit:FullCastSpellOnTarget(3391,pUnit)
pUnit:RegisterEvent('Sorts_6347', 624, 1)
end

function Sorts_6347(pUnit, Event)
local choix_sorts_6347 = math.random(0, 0)
if choix_sorts_6347 == 0 then
pUnit:RegisterEvent('spell0_6347', 1, 1)
end
end

function mob6347_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_6347', math.random(1500, 3000), 1)
end

function mob6347_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6347_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6347_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(6347, 1, 'mob6347_Action')
RegisterUnitEvent(6347, 2, 'mob6347_Leave')
RegisterUnitEvent(6347, 3, 'mob6347_Kill')
RegisterUnitEvent(6347, 4, 'mob6347_Die')
